From ce289294a03a1eb28da48cdb4cddc5124053aaa3 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Tue, 9 May 2023 03:13:56 -0600 Subject: about pages, added profile pictures --- app/about/[name]/page.tsx | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 app/about/[name]/page.tsx (limited to 'app/about/[name]') diff --git a/app/about/[name]/page.tsx b/app/about/[name]/page.tsx new file mode 100644 index 0000000..625af62 --- /dev/null +++ b/app/about/[name]/page.tsx @@ -0,0 +1,34 @@ +import Markdown from "markdown-to-jsx"; +import { notFound } from "next/navigation"; + +import InfoBar from "~/components/InfoBar"; + +import styles from "~/styles/index.module.css" +import system from "~/config/system.json" + +export default function MemberPage({ params: { name } }) { + const member = system.members.find(member => member.name.toLowerCase() === name) + + if (!member) notFound() + + return ( + <> +
+ +

{member.bioShort}

+ {member.bioContinued} + {member.bioFields?.length && ( + +
+ {member.bioFields.map(({ name, value }) => ( + <> + {name} + {value} + + ))} +
+ )} +
+ + ) +} -- cgit 1.4.1